package com.zyy.chain;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/09 18:04
 */
public class Client {
    public static void main(String[] args) {

        LeaveRequest leaveRequest = new LeaveRequest("张三", 9, "出去旅游");

        //各位领导
        GroupLeader groupLeader = new GroupLeader();
        Manager manager = new Manager();
        GeneralManager generalManager = new GeneralManager();

        //小组长上司是经理 经理上司是总经理
        groupLeader.setNextHandler(manager);
        manager.setNextHandler(generalManager);

        //提交
        groupLeader.submit(leaveRequest);


    }
}
